home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d11 / debut140.arc / SD.DOC < prev    next >
Text File  |  1990-07-15  |  33KB  |  912 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                       S C R E E N   D E B U T  v1.4
  25.                          
  26.                          by Willie Robinson
  27.                          2613 Louis Blvd
  28.                          Hephzibah Ga 30815
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.         (C)opyright 1990 Willie Robinson
  46.  
  47.  
  48.                  S  C  R  E  E N    D  E  B  U  T      1.4     Pg 1
  49.     ─────────────────────────────────────────────────────────────────
  50.  
  51.  
  52.  
  53.                                  Contents
  54.  
  55.  
  56.  
  57.      Foreword...............................................Page 2
  58.  
  59.      Disclaimer.............................................Page 2
  60.  
  61.      Shareware Notice.......................................Page 3
  62.  
  63.      Starting Screen Debut..................................Page 4
  64.  
  65.      Exiting Screen Debut...................................Page 4
  66.  
  67.      General Editing Commands...............................Page 4
  68.  
  69.      Options................................................Page 6
  70.  
  71.      Extended Options.......................................Page 8
  72.  
  73.      Building ANSI Screens..................................Page 9
  74.  
  75.      ANSI Animator..........................................Page 9
  76.  
  77.      Support for GT Power BBSs..............................Page 12
  78.  
  79.      Build ANSI Function....................................Page 13
  80.  
  81.      Build BASIC Function...................................Page 14
  82.  
  83.      BSAVE..................................................Page 14
  84.  
  85.      Use with Hammerly's ProBas.............................Page 14
  86.  
  87.      Build C Language Function..............................Page 15
  88.  
  89.      Build Pascal Function..................................Page 15
  90.  
  91.      File Handling..........................................Page 16
  92.  
  93.      Block Diagram of Major Functions.......................Page 17
  94.  
  95.      Snap Screen............................................Page 18
  96.  
  97.      Odds and Ends..........................................Page 19
  98.  
  99.      Limitations............................................Page 20
  100.  
  101.  
  102.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 2
  103.     ─────────────────────────────────────────────────────────────────
  104.  
  105.  
  106.                              THANK-YOU
  107.  
  108.  
  109.      Thank-you to all the people who have contributed so greatly to
  110.     the success of this program. Without your support and suggestions
  111.     this program would not have achieved the level of performance that
  112.     it currently maintains.
  113.  
  114.     A personal Thank-you to:
  115.  
  116.     Scott Cushman
  117.     Tom & Jane Devlin
  118.     Jack Hazel
  119.     Chris Kitchin
  120.     Warren Leadbeatter
  121.     Steve Moody
  122.     Steve Paye
  123.     David Philpott
  124.     
  125.  
  126.                              FOREWORD
  127.  
  128.      Screen Debut is a very powerful screen generator. It's designed as
  129.     a tool to ease the development of text screens. It generates code
  130.     for screens in many different ways.
  131.  
  132.  
  133.     »   ASCII Code
  134.  
  135.  
  136.     »   ANSI Code for use with DOS and Telecommunications.
  137.  
  138.  
  139.     »   BASIC Code with & without line numbers plus BSAVE.
  140.  
  141.  
  142.     »   C Code for Turbo C.
  143.  
  144.  
  145.     »   Pascal Code For use with Turbo Pascal.
  146.  
  147.  
  148.     »   Compressed Binary Format for use with Snap Screen
  149.         and Hammerly's ProBas.
  150.  
  151.  
  152.  
  153.     DISCLAIMER: While this program has been extensively tested,
  154.     unforeseen snags may arise. The use of this program is at your
  155.     own risk!
  156.  
  157.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 3
  158.     ─────────────────────────────────────────────────────────────────
  159.  
  160.  
  161.  
  162.                              SHAREWARE NOTICE
  163.  
  164.  
  165.  
  166.     This program is a shareware program, feel free to share it with
  167.    your friends or whomever. The more you share it, the wider it's
  168.    distribution will be. Please help by uploading it to all BBSs!
  169.  
  170.     Under the shareware concept, the user is allowed to try out the
  171.    program before purchasing it. If you like the program and feel it
  172.    will be of use to you, please register it by sending $10.00 to the
  173.    below address. With a $10.00 registration you will receive a free
  174.    complimentary copy of Screen Predator (Outside US add $10.00 for
  175.    handling plus postage) and the most recent version of Screen Debut.
  176.  
  177.     If you do use the program, help it along with your registration.
  178.    Your support will help to keep the program alive. Send registrations
  179.    to the below address. Please specify 3.5 or 5.25 inch disk. Outside
  180.    North America add $10.00 for handling and postage.
  181.  
  182.  
  183.  
  184.                             Willie Robinson
  185.                             2613 LOUIS BLVD
  186.                             HEPHZIBAH GA. 30815
  187.  
  188.  
  189.  
  190.  
  191.    NOTICE: This program is Copyrighted.  ALL Rights Reserved.  It may
  192.   not be modified, disassembled, or sold by second parties without
  193.   written consent from the author. Site license information is available.
  194.  
  195.  
  196.   NOTE TO SHAREWARE DISTRIBUTION OUTLETS: A small fee (Less Than $10.00)
  197.   may be charged for copying and providing a disk. This does not negate
  198.   the authors request.
  199.  
  200.  
  201.   NOTE TO SYSOPS: Thank-you for your support of this program!
  202.  
  203.  
  204.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 4
  205.    ──────────────────────────────────────────────────────────────────
  206.  
  207.  
  208.                           RUNNING SCREEN DEBUT
  209.  
  210.    From the Dos Prompt:
  211.  
  212.        A>SD YOURFILE  (Screens can be loaded from the command line)
  213.  
  214.    Command Line Switches:
  215.  
  216.       /S - Puts the program in Snow Suppression mode. This is only
  217.       useful for older CGA chips. If you don't see snow, don't use
  218.       this switch. It slows the program down.
  219.  
  220.  
  221.                            EXITING THE PROGRAM
  222.  
  223.    Use the Esc key to exit the program. The Esc key will also exit
  224.    any function within the program. With a mouse, locate the cursor
  225.    in the bottom right corner and click the left key.
  226.  
  227.  
  228.                            EDITING COMMANDS
  229.  
  230.   »  Screen Debut is Mouse supported. All commands use the left button.
  231.  
  232.   »  The Arrow Keys move the cursor on the screen. The status bar at
  233.      the bottom of the screen indicates the cursor's coordinates. To
  234.      draw lines, use the F2 Key to toggle between Move Cursor, Single
  235.      Border, and Double Border.
  236.  
  237.   »  The Home, End, Pg Up, Pg Dn, and Tab also move the Cursor on the
  238.      screen.
  239.  
  240.   »  The Back Space key removes character to the left of the Cursor and
  241.      moves the Cursor one space to the left. Pulling all Characters to
  242.      the right of the cursor one space to the left.
  243.  
  244.   »  Pressing the "Ins" key will toggle between the insert mode and the
  245.      overwrite mode of operation. In the Insert mode the cursor is small.
  246.      This allows characters to be inserted. In the Overwrite mode the
  247.      cursor is full height. This allows characters to be overwritten.
  248.  
  249.   »  The Del key removes characters.
  250.  
  251.   »  Full Control key support. [Ctrl] A place ASCII character #1 (a happy
  252.      face) at the cursor and so on.
  253.      
  254.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 5
  255.    ──────────────────────────────────────────────────────────────────
  256.  
  257.  
  258.  
  259.   »  Full Numeric ASCII code support. Hold down the [ALT] key and type
  260.      the ASCII code into the NUMERIC key pad. The Character will be
  261.      placed at the cursor position.
  262.  
  263.   »  [ALT] L (Letter) allows BIG LETTERS to be placed on the screen. All
  264.      ASCII characters from 1 to 127 are supported. The Pointer on the
  265.      ASCII Chart (F5) is used to select the fill characters. To use the
  266.      ASCII Chart without putting a character at the current cursor
  267.      position set the pointer and press Escape. The fill characters may
  268.      be of any ASCII character. The Letters will be of the Default color
  269.      set by the (F3) or (F4) select color commands. The Tab Key works
  270.      very well for letter spacing. The characters are based on a 8 x 8
  271.      Row/Column matrix. There are three methods to enter the BIG character.
  272.  
  273.      1) Just use the normal keyboard keys.
  274.  
  275.      2) Use the [Ctrl] letter combination that represents a control
  276.      character. (ASCII codes 1 to 30)
  277.  
  278.      3) Hold down the [ALT] Key and type in the ASCII character number.
  279.  
  280.      Note: This is a tough way to go, but if you don't have a book with
  281.      an ASCII chart then use the programs chart (F5). Just start at the
  282.      top and count from left to right. The first character is number #1
  283.      or [Ctrl] A depending how you look at it. This procedure is a last
  284.      minute addition to the program. It is not yet reflected in the
  285.      menuing system.
  286.  
  287.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 6
  288.    ──────────────────────────────────────────────────────────────────
  289.  
  290.  
  291.                                OPTIONS
  292.     ╓──┐
  293.     ║F1│ The F1 key activates the options menu. Use the up/down arrow
  294.     ╚══╛ keys or press the appropriate short cut key to select an option.
  295.          The short cut keys are always active for fast service. A second
  296.          press of the F1 key activates the ANSI Animation Mode of operation.
  297.  
  298.     ╓──┐
  299.     ║F2│ The F2 key toggles between Move Cursor, Single Border, and
  300.     ╚══╛ Double Border. This is useful for moving the cursor and drawing
  301.          single or double lines.
  302.          [Shift] F2 for line modes without automatic junctions. This
  303.          command is not listed on the menuing system. However, the F2
  304.          command does have a dot next to it as a reminder.
  305.  
  306.     ╓──┐
  307.     ║F3│ The F3 key sets the current color. The current color is
  308.     ╚══╛ indicated by the color of the left half of the Status Line.
  309.  
  310.     ╓──┐
  311.     ║F4│ The F4 key activates the recolor screen option. Place the
  312.     ╚══╛ cursor over the color you wish to reset. Notice that the red
  313.          selector arrow visually differentiates this function from the
  314.          F3 function (  ≡> versus >  ).
  315.  
  316.     ╓──┐
  317.     ║F5│ The F5 key calls up the ASCII character chart. Characters not
  318.     ╚══╛ supported by the Keyboard are available. The selected
  319.          character will be placed at the cursors current location.
  320.          [Shift] F5 or [Alt] Z places a ASCII character selected by the
  321.          ASCII chart to the current cursor position without going to the
  322.          menu.
  323.          Caution: Some ASCII characters, control codes, cause
  324.          unpredictable results when used in conjunction with programming
  325.          languages.
  326.  
  327.     ╓──┐
  328.     ║F6│ The F6 key selects Box Junctions.
  329.     ╚══╛
  330.  
  331.     ╓──┐
  332.     ║F7│ The F7 key loads Screen Debut files.  These files have the ".SD"
  333.     ╚══╛ extension.
  334.          [Shift] F7 allows for the loading of raw files. Screen Debut
  335.          directs these files through the BIOS therefore ANSI Files are
  336.          no problem as long as the ANSI Device Driver is installed.
  337.          The files are loaded in line by line. Hit any key to
  338.          stop the loading process.
  339.          Note: The Screen Debut directory is limited to 110 SD files.
  340.          Use sub-directories to surpase this limitation.
  341.  
  342.                     S  C  R  E  E N    D  E  B  U  T      1.4     Pg 7
  343.    ──────────────────────────────────────────────────────────────────
  344.  
  345.  
  346.     ╓──┐
  347.     ║F8│ The F8 key saves the screen.
  348.     ╚══╛ Caution: Do not keep more than 110 .SD files in one DOS
  349.          directory.
  350.  
  351.     ╓──┐
  352.     ║F9│ The F9 key clears the entire screen to the default colors, a
  353.     ╚══╛ grey foreground on a black background. Use the F4 key to
  354.          change the foreground and background colors if desired.
  355.  
  356.     ╓───┐
  357.     ║F10│ The F10 key exits to the DOS shell. This means the
  358.     ╚═══╛ program stays in the computer's memory while work is being
  359.           done at the DOS level.
  360.           Tip: Set the DOS Path so COMMAND.COM can be found. As an
  361.           alternative, place COMMAND.COM in the current directory.
  362.  
  363.  
  364.                     S  C  R  E  E N    D  E  B  U  T      1.4     Pg 8
  365.    ──────────────────────────────────────────────────────────────────
  366.  
  367.  
  368.                               EXTENDED OPTIONS
  369.  
  370.     ╓───┐  ╓──┐
  371.     ║Alt│  ║F1│  activates the pull up "Extended Options" menu. This
  372.     ╚═══╛  ╚══╛  menu provides a quick reference of the extended editing
  373.                  capabilities of the program. All commands have shortcut
  374.                  keys.
  375.  
  376.     ╓───┐  ╓──┐
  377.     ║Alt│  ║F2│  Recolor Area - Recolors a Block (a square) on the
  378.     ╚═══╛  ╚══╛  screen.
  379.                  Note: The Block is Re-colored to the current selected
  380.                  color.
  381.  
  382.     ╓───┐  ╓──┐
  383.     ║Alt│  ║F3│  Cut & Paste - Removes selected text and allows
  384.     ╚═══╛  ╚══╛  movement of it to another location via the arrow
  385.                  keys.
  386.  
  387.     ╓───┐  ╓──┐
  388.     ║Alt│  ║F4│  Copy & Paste - This function allows a block to be
  389.     ╚═══╛  ╚══╛  copied from one position to another.
  390.  
  391.     ╓───┐  ╓──┐
  392.     ║Alt│  ║F5│  Cut - Cuts a block from the screen, storing it in
  393.     ╚═══╛  ╚══╛  memory for later recovery with Paste. Cut is also
  394.                  useful for erasing all or part of the Screen. The
  395.                  cut area assumes the current color attributes.
  396.  
  397.     ╓───┐  ╓──┐
  398.     ║Alt│  ║F6│  Copy - This function works much like a camera. It
  399.     ╚═══╛  ╚══╛  Copies a selected area into memory, saving it for
  400.                  later recovery with Paste.
  401.  
  402.     ╓───┐  ╓──┐
  403.     ║Alt│  ║F7│  Paste - Restores a block which was saved with the
  404.     ╚═══╛  ╚══╛  Cut or Copy function.
  405.  
  406.     Note: The main purpose of the Cut, Copy, and Paste functions is
  407.     to allow the importation of screen snapshots (blocks).
  408.  
  409.  
  410.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 9
  411.    ──────────────────────────────────────────────────────────────────
  412.  
  413.  
  414.                           BUILDING ANSI SCREENS
  415.  
  416.  
  417.  
  418.  
  419.     SYSTEM SET-UP:
  420.  
  421.     ANSI Screens use the ANSI.SYS file that comes with DOS. Make sure
  422.     your CONFIG.SYS file contains the following.
  423.  
  424.                           DEVICE = ANSI.SYS
  425.  
  426.     It should be in the root directory on the hard disk or on the boot
  427.     up disk. If it doesn't exist it can be created with a word
  428.     processor, or the DOS COPY CON command. (SEE YOUR DOS MANUAL).
  429.  
  430.     Now your ready to use the ANSI screens built by Screen Debut.
  431.     ANSI screens have the extension ".ANS". Use the DOS "TYPE" command
  432.     to post the screen to your monitor. Like this
  433.  
  434.                           A>TYPE YOURFILE.ANS
  435.  
  436.     NOTE: An alternative to the ANSI.SYS is to use Snap Screen.
  437.                    (See Snap Screen in the Index)
  438.  
  439.  
  440.                           Ansi Animation
  441.  
  442.  
  443.     Screen Debut allows for Animated and Non-Animated screens. For
  444.     information on how to create Non-Animated screens see the section
  445.     on editing commands. A small blinking box on the right of the status
  446.     line indicates the screen is Animated.
  447.  
  448.     ╓──┐ ╓──┐
  449.     ║F1│ ║F1│  To Enter or Exit the ANSI Animation mode of operation
  450.     ╚══╛ ╚══╛  press the F1 key twice. Once you have pressed the F1
  451.                key twice you will notice a change at the bottom status
  452.                line of the screen. In the Animation Mode of operation, a
  453.                Frame counter will appear on the Statue Line.
  454.  
  455.                Note: Some of the editing commands available under the
  456.                F1 Option have changed. Extended options are not used in
  457.                this mode of operation.
  458.  
  459.  
  460.  
  461.                 S  C  R  E  E N    D  E  B  U  T      1.4     Pg 10
  462.    ──────────────────────────────────────────────────────────────────
  463.  
  464.  
  465.     ╓──┐
  466.     ║F2│ The F2 key toggles between Move Cursor, Single Border, and
  467.     ╚══╛ Double Border. This is useful for moving the cursor and
  468.          drawing single or double lines.
  469.  
  470.     ╓──┐
  471.     ║F3│ The F3 key sets the current color. The Current color status
  472.     ╚══╛ colors the left half of the status line at the bottom
  473.          of the screen.
  474.  
  475.     ╓──┐
  476.     ║F4│ The F4 key selects the "Data View" Option. This option pulls
  477.     ╚══╛ up a window that contains information contained within the
  478.          animation frames. The options available are:
  479.  
  480.           Up/Down Arrow - Scrolls data
  481.  
  482.           Left/Right Arrow - Sets Replay Delay time in micro-seconds.
  483.                              This is the Animation display delay.
  484.  
  485.           Ins - Depressing the insert key insert a +/- character into
  486.                 the frame selected by the red arrow.
  487.  
  488.  
  489.  
  490.           Del - Cuts the character selected by the red arrow.
  491.     ╓──┐
  492.     ║F5│ The F5 key selects the ASCII character chart.
  493.     ╚══╛
  494.          Caution: ASCII codes below 32 are used for control codes.
  495.          In certain circumstances they may cause unpredictable results.
  496.  
  497.  
  498.                    S  C  R  E  E N    D  E  B  U  T      1.4   Pg 11
  499.    ──────────────────────────────────────────────────────────────────
  500.  
  501.  
  502.  
  503.     ╓──┐
  504.     ║F6│ The F6 key selects Box Junctions.
  505.     ╚══╛
  506.     ╓──┐
  507.     ║F7│ The F7 key steps the program one frame back.
  508.     ╚══╛
  509.  
  510.     ╓──┐
  511.     ║F8│ The F8 key steps the program one frame forward.
  512.     ╚══╛
  513.  
  514.     ╓──┐
  515.     ║F9│ The F9 key clears the animated portion of the screen.
  516.     ╚══╛
  517.  
  518.     ╓───┐
  519.     ║F10│ The F10 key causes the animator to reset to frame 1 then
  520.     ╚═══╛ it replays the animation. To stop the animator press any
  521.           key. Animation speed is set using the F4 function.
  522.           See the instructions on the F4 key for an explanation on
  523.           how this works.
  524.  
  525.  
  526.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 12
  527.    ──────────────────────────────────────────────────────────────────
  528.  
  529.  
  530.     SUPPORT FOR GT Power BBSs:
  531.  
  532.     GT Power BBSs allow uploading of ANSI Code into the message areas
  533.     using the ASCII protocol for uploading. Screen Debut supports these
  534.     message areas in the following ways.
  535.  
  536.     This example of the ANSI code parameter window appears every time
  537.     the Build ANSI code procedure is invoked.
  538.  
  539.                 ╓─────────────────────────────────────────╖
  540.                 ║                                         ║
  541.                 ║  Code Style                    Compact  ║
  542.                 ║  Code Width ±                  72       ║
  543.                 ║  Clear Screen                  Yes      ║
  544.                 ║  BBS Control Code              ^E       ║
  545.                 ╟────────────────────┬────────────────────╢
  546.                 ║    Enter           │             Esc    ║
  547.                 ╙────────────────────┴────────────────────╜
  548.  
  549.     1) Code Style
  550.  
  551.         Code style selects the coding routine which will code the non-
  552.       animated screen. There are two flavors, Regular and Compact.
  553.       Regular code is special geared to scroll the screen as it appears.
  554.       Compact code on the other hand uses a different coding strategy. It
  555.       will minimize the number of lines of code. Ideal for fairly complex
  556.       screens which will be used in a BBS message base.
  557.  
  558.     2) Code Width
  559.  
  560.        Use a width of 72 for message base work otherwise open it up to
  561.       250. For fine tuning use the + or - keys. Note that these widths
  562.       are only approximations. The actual code width may be wider under
  563.       some circumstances.
  564.  
  565.     3) Clear Screen
  566.  
  567.        Controls whether or not the code to clear the
  568.       screen is to be used.
  569.  
  570.     4) Control Code Support
  571.  
  572.        GT BBSs use the ^E and ^R characters to control the "More Y/n?".
  573.       The "More" prompt is not always desirable. To add a ^E or ^R to
  574.       the beginning of a file, set ANSI Code parameter window's "BBS
  575.       Control Code". A ^E will give one "More Y/n?" then allow the file
  576.       to run uninterrupted . A ^R will allow a file to run it's entire
  577.       length without a "More Y/n?"
  578.  
  579.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 13
  580.    ──────────────────────────────────────────────────────────────────
  581.  
  582.  
  583.  
  584.     ALT A  BUILD ANSI CODE:
  585.  
  586.     Screen Debut use three separate algorithms to code ANSI screens.
  587.  
  588.      The first two code the Static (Non-Animated) Screen. Screen Debut
  589.     uses Auto-Sizing to adjust the size of the coded screen. Auto Sizing
  590.     first determines the existence and actual size of the drawing by
  591.     scanning the screen from bottom (Row 24) to top. Then it scans from
  592.     right to left to determine the right edge of the drawing. It does
  593.     this by searching for characters that are not blank spaces (ASCII
  594.     character 32) of the default color white on black. Once it has
  595.     determined that a drawing does exist on the screen and it's size,
  596.     it codes it. See the section on the previous page for a discussion
  597.     of the code parameter window.
  598.     
  599.      The Third algorithm codes the Soft (Animated) Screen. It first
  600.     checks to see if an animated drawing exists. If there is anything
  601.     in the animation buffer (memory area) it codes it. The code
  602.     produced here is sensitive to screen placement because it uses the
  603.     screens X, Y coordinates to place each character. Furthermore, the
  604.     cursors resting position (position of the cursor when the ALT A
  605.     command was used) will be recorded into the ANSI code.
  606.  
  607.  
  608.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 14
  609.    ──────────────────────────────────────────────────────────────────
  610.  
  611.  
  612.  
  613.                                 BASIC
  614.  
  615.    BUILD BASIC CODE:  [ALT] B
  616.  
  617.   Screen Debut codes the top 24 rows of the screen in Basic, with or
  618.   without line numbers. Use Basic's "MERGE" command to place the
  619.   code built by Debut in your program.  Basic screen files end with
  620.   the .BAS extension. Use Basic's "RENUM" command to renumber the
  621.   line numbers if needed.
  622.  
  623.                                 BSAVE
  624.  
  625.    Load BSAVE files from Basic with the use of the "BLOAD" command. An
  626.   example has been provided in the file "BLOAD.BAS".
  627.   Note: The BSAVE files made by this program haven't been successful on
  628.   Tandy computers. (?)
  629.  
  630.  
  631.               Screen Debut Files with HAMMERLY'S PROBAS
  632.  
  633.  
  634.    The Compressed Binary files with the .SD file extension are compatible
  635.   with Hammerly's ProBas. Here's the code segment needed to load and post
  636.   the screens.
  637.  
  638.  
  639.   DIM SCR%(2000)               '--- Dimension Array to 2000 integers
  640.   DIM CSCR%(2000)
  641.  
  642.   '-/OPEN SCREEN FILE TO BE READ IN FROM DISK/-----------------------
  643.   CALL FOPEN("YOURFILE.SD", 0, 0, HANDLE%, ECODE%)
  644.   IF ECODE% THEN PRINT "ERROR"
  645.  
  646.   '-/Get file size/--------------------------------------------------
  647.   CALL FSIZE(HANDLE%, BYTES&)
  648.   BYTES% = CINT(BYTES&)        '--- Put Long integer into short
  649.  
  650.   '-/Read Data in file/----------------------------------------------
  651.   CSEG% = VARSEG(CSCR%(1))     '--- Set Pointers
  652.   COFS% = VARPTR(CSCR%(1))
  653.   CALL DFREAD(HANDLE%, CSEG%, COFS%, BYTES%, BYTESREAD%, ECODE%)
  654.   IF ECODE% THEN PRINT "ERROR"
  655.  
  656.   '-/Close File/-----------------------------------------------------
  657.   CALL FCLOSE(HANDLE%)
  658.  
  659.  
  660.                  S  C  R  E  E N    D  E  B  U  T      1.4     Pg 15
  661.     ─────────────────────────────────────────────────────────────────
  662.  
  663.  
  664.  
  665.   '-/UnCrunch Screen Data(Decompress)/-------------------------------
  666.   DSEG% = VARSEG(SCR%(1))     '--- Reset pointers
  667.   DOFS% = VARPTR(SCR%(1))
  668.   CSEG% = VARSEG(CSCR%(1))
  669.   COFS% = VARPTR(CSCR%(1))
  670.   CALL UNSCRUNCH(DSEG%, DOFS%, CSEG%, COFS%)
  671.  
  672.   '-/Put Data to the Screen/-----------------------------------------
  673.   DSEG% = VARSEG(SCR%(1))     '--- Reset Pointers
  674.   DOFS% = VARPTR(SCR%(1))
  675.   CALL DSCRREST(DSEG%, DOFS%, 0, SNOW%)
  676.  
  677.  
  678.  
  679.   NOTE: When saved the 25th line assumes the current color attributes.
  680.  
  681.  
  682.  
  683.                                 C Language
  684.  
  685.  
  686.   The C code is built top 24 rows of the screen. The code is compatible
  687.   with Turbo C. C screen files end with the ".C" extension.
  688.  
  689.  
  690.  
  691.                                 Pascal
  692.  
  693.  
  694.   Originally Screen Debut was built as a Pascal only screen code
  695.   generator. The Pascal code generated by it is compatible with Turbo
  696.   Pascal. Due to the use of the "CheckSnow" variable the screens are
  697.   very fast. The code can be produced as either a procedure or as a
  698.   unit. See your Language manual to include the screens into your
  699.   program. Pascal coded screens end with the extension ".PAS".
  700.  
  701.  
  702.  
  703.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 16
  704.    ──────────────────────────────────────────────────────────────────
  705.  
  706.  
  707.                              File Handling
  708.  
  709.  
  710.  
  711.    When doing a F7, Load Screen function, Screen Debut looks for the
  712.    files with the ".SD" extension. When a file is selected from the menu
  713.    it checks to see if it is has an animated counterpart.  The animated
  714.    files are the files with the extension ".SDA". If one exists, it
  715.    loads it along with the ".SD" file. It is assumed that a ".SDA" file
  716.    will not exist without a ".SD" file. When saving a file from one of
  717.    the build code functions the ".SD" file, the ".SDA" file (If
  718.    appropriate), and the code file are all saved. If the .SD file exists,
  719.    Screen Debut will challenge the user with "*.SD EXISTS OVERWRITE ?".
  720.    Select "No" to write the code to the disk without overwriting the
  721.    *.SD file. Hit Escape to abort the procedure entirely. Debut
  722.    guards the ".SD" files because they represent your work.  The coded
  723.    screens are of no concern to it, it will overwrite them without
  724.    notification.
  725.  
  726.  
  727.  
  728.                              File Extensions
  729.  
  730.  
  731.  
  732.               .SD...........Debut's Compressed Binary File
  733.  
  734.               .SDA..........Debut's Animated Screens
  735.  
  736.               .ANS..........ANSI Coded Screens
  737.  
  738.               .ASC..........ASCII Files
  739.  
  740.               .BAS..........Basic Coded Screens & BSAVE
  741.  
  742.               .C............C Language Coded Screens
  743.  
  744.               .PAS..........Pascal Coded Screens
  745.  
  746.  
  747.  
  748.                      S  C  R  E  E N    D  E  B  U  T      1.4     Pg 17
  749.    ──────────────────────────────────────────────────────────────────
  750.  
  751.  
  752.  
  753.                           Major Function Areas
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.          A>SD >──────────────────────┐
  761.                             ┌────────┴────────┐
  762.                             │ OPENING  SCREEN │
  763.                             └────────┬────────┘
  764.        ┌───────────┐       ┌─────────┴──────────┐       ┌─────────────┐
  765.        │           │       │                    │   ┌───┤ Build  ALT  │
  766.        │           │       │                    │   │   │ ASCII   @   │
  767.        │           │       │                    │   │   ├─────────────┤
  768.        │ A      A  │       │                    │   ├───┤ Build  ALT  │
  769.        │ N      N  │       │                    │   │   │ ANSI    A   │
  770.        │ S      I  │       │      Main          │   │   ├─────────────┤
  771.        │ I      M  ├───────┤      Editor        ├───┼───┤ Build  ALT  │
  772.        │        A  │       │                    │   │   │ Basic   B   │
  773.        │        T  │       │                    │   │   ├─────────────┤
  774.        │        O  │       │                    │   ├───┤ Build  ALT  │
  775.        │        R  │       │                    │   │   │ C Lang. C   │
  776.        │           │       │                    │   │   ├─────────────┤
  777.        │           │       │                    │   └───┤ Build  ALT  │
  778.        │  F1 - F1  │       │                    │       │ Pascal  P   │
  779.        └───────────┘       └─────────┬──────────┘       └─────────────┘
  780.                                      │
  781.                                      │  (Escape Key to DOS )
  782.          A>       <──────────────────┘  (Or out of any Area)
  783.  
  784.  
  785.  
  786.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 18
  787.    ──────────────────────────────────────────────────────────────────
  788.  
  789.  
  790.                                SNAP SCREEN
  791.  
  792.  
  793.   Snap Screen posts to the screen, Screen Debut files. It's primarily
  794.   intended for use with batch files. It's advantage over ANSI is that
  795.   it posts screens very fast. It can reach across a directory or even
  796.   a drive and post a screen in the blink of an eye. All screens can be
  797.   kept in one directory for easy maintenance. It also has the ability
  798.   to post screens in a dramatic split screen way.
  799.    The advantages of using Snap Screen over ".COM" screens are.
  800.    1) Saves Space - It reads Screen Debuts compressed binary files which
  801.       are typical about 800 Bytes in size.  A typical ".COM" screen that
  802.       carries no video assistance takes over 4000 bytes of disk space!
  803.    2) Monitor Support - Snap Screen checks for the type of monitor (color
  804.       or monochrome) and then loads the screen correctly. It also sets the
  805.       DOS prompt to the position you indicate.
  806.    3) Dramatic split screen displays - optional
  807.    4) Ease of Maintenance - All screens can be kept in the directory with
  808.       Screen Debut for easy modification and still used with batch files
  809.       that are located elsewhere.
  810.  
  811.  
  812.   Here's how it works:
  813.  
  814.   A>SNAPSCRN YOURFILE.SD 20 1
  815.  
  816.                  ^        ^ ^
  817.                  │        │ └───(NON Zero = Split Screen, 0 = Normal)
  818.                  │        │
  819.                  │        └─────(UP/DOWN Location of the A> (1 - 24))
  820.                  │
  821.                  └──────────────(File made with Screen Debut        )
  822.                                 (The extension .SD is not necessary )
  823.  
  824.  
  825.                     S  C  R  E  E N    D  E  B  U  T      1.4     Pg 19
  826.    ──────────────────────────────────────────────────────────────────
  827.  
  828.  
  829.                                  ODDS & ENDS
  830.  
  831.     When developing a screen it is very important to pay attention to
  832.    the hidden color attributes. Changing color attributes for no reason
  833.    adds unnecessary extra code.
  834.  
  835.                                  PROGRAM ERRORS
  836.  
  837.     The program has had the heck run out of it. To the best of my
  838.    knowledge it's bug free, however there's the human element. If you
  839.    find an error please let me know so I can correct it.
  840.  
  841.                                ANTICIPATED ERRORS
  842.  
  843.     Hardware versus Software type errors have been anticipated. An
  844.   example of this type of error is writing to a drive while the drive
  845.   door is open. In  the event of an anticipated error the program will
  846.   try to recover itself. It will beep, give an error message for
  847.   approximately five seconds, then revert to where it was before the
  848.   error occurred. The only action required on your part is to heed the
  849.   error message.
  850.  
  851.                                MEMORY ALLOCATION
  852.  
  853.     [ALT] = : This function checks the amount of unused memory. Without
  854.    enough free memory, Screen Debut will crash. In fact, this is the
  855.    only time it's been known to crash. Adding TSR's improperly from the
  856.    DOS shell causes a memory allocation problem. Don't load Screen
  857.    Predator from the DOS shell! If you suspect the program is running
  858.    out of memory check it by pushing "[ALT] =" while in the Main Editing
  859.    environment. Storage of all the large data arrays takes place in the
  860.    Far Memory. Insure that there's plenty of free memory here as it is
  861.    allocated on the fly. (30KB plus)
  862.  
  863.  
  864.                    S  C  R  E  E N    D  E  B  U  T      1.4     Pg 20
  865.    ──────────────────────────────────────────────────────────────────
  866.  
  867.  
  868.                              Limitations
  869.  
  870.  
  871.  
  872.     The program will code up to 999 lines of code.
  873.  
  874.  
  875.     Line 25 has been left off coded screens. Because, when the last
  876.    character of line 25 is written it causes the cursor to move to
  877.    line 26. This causes the screen to scroll.
  878.  
  879.  
  880.     The ANSI Animator can handle up to 6000 frames. The equivalent
  881.    of three full screens.
  882.  
  883.  
  884.                               Inquires
  885.  
  886.     Please direct inquires to the fore mentioned address or via the GT
  887.    Power Network to NET NODE 081/001 (Jack's Board of Augusta Georgia).
  888.    Open questions concerning ANSI may be directed thru the "Inter-
  889.    national ANSI Conference" or the "OZ ANSI Conference" also in the GT
  890.    net.  Thanks for taking the time to look this program over!
  891.  
  892.                                             Sincerely,
  893.                                             ╔═════════╗
  894.                                             ║│ │∙││∙┌─╜
  895.                                             ║│││││││├─
  896.                                             ║└┴┘└┴┴┘└─╖
  897.                                             ╚═════════╝
  898.  
  899.                                             Willie Robinson
  900.  
  901.    -------------------------- TRADEMARKS ----------------------------
  902.  
  903.  
  904.    TURBO C & TURBO Pascal are trademarks of Borland International.
  905.  
  906.    Tandy is a trademark of the Tandy Corporation.
  907.  
  908.    ProBas is a trademark of Hammerly Computer Services.
  909.  
  910.    GT Power is a product of P & M Software Co.
  911.  
  912.